Repository navigation
chore(deps): update dependency packaging to v26.3 - #18618
Open
renovate-bot wants to merge 1 commit into
Open
renovate-bot wants to merge 1 commit into
renovate-bot wants to merge 1 commit into
Conversation
parthea
pushed a commit
that referenced
this pull request
Oct 13, 2026
…unique naming and teardown (#18623) **Fix Schema Collision and DDL Concurrency in SQLAlchemy Spanner Literal Tests** ## Problem In the Cloud Spanner SQLAlchemy compliance tests, tests using the `literal_round_trip_spanner` fixture were failing with `400 Duplicate name in schema: t_literal_round_trip_spanner`. This occurred because the fixture created a table with a static, hardcoded name (`t_literal_round_trip_spanner`) without teardown between tests. When subsequent test methods in the same class (such as `StringTest`, `NumericTest`, `BooleanTest`, and `TextTest`) invoked the fixture, Cloud Spanner rejected creating an already existing table. Furthermore, executing DDL statements while read-write transactions from queries remain active triggers `400 Schema change operation rejected because a concurrent schema change operation or read-write transaction is already in progress`. ## Solution 1. **Dynamic Unique Table Naming**: Generated an isolated table name per test invocation using the column type and a random hexadecimal suffix (for example, `t_lit_string_a3f2b1`). 2. **Cross-Version DBAPI Resolution**: Retrieved `dbapi_connection` first with fallback to `connection` to support both modern SQLAlchemy 2.0 and legacy 1.4 without deprecation warnings. 3. **Transaction State Management**: Added explicit rollback of active transactions before executing DDL drops, ensuring Cloud Spanner does not reject table drops due to concurrent active transactions. 4. **Guaranteed Metadata Teardown**: Enclosed table creation in the primary try block and table drop in a nested `try...finally` block to ensure that table entries are always evicted from SQLAlchemy metadata even if creation or drop operations fail. ## Related Pull Requests This fix unblocks and resolves failing `Kokoro Sqlalchemy Compliance Tests` across the following pull requests once rebased onto `main`: * #18631 (`chore(deps): update dependency mako to v1.4.2 [security]`) * #18565 (`chore(deps): update dependency urllib3 to v2.6.3`) * #18618 (`chore(deps): update dependency packaging to v26.3`) * #18621 (`chore(deps): update dependency pycparser to v3.11`) ## Notes to Reviewers * This change is strictly localized to `packages/sqlalchemy-spanner/tests/conftest.py`. * It provides test isolation for literal rendering tests, eliminating schema collisions and transaction concurrency failures without modifying runtime dialect behavior.
renovate-bot
force-pushed
the
renovate/packaging-26.x
branch
from
October 13, 2026 17:13
5d7fad2 to
d287389
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==26.2→==26.3==25.0→==26.3Release Notes
pypa/packaging (packaging)
v26.3Compare Source
What's Changed
Features
VersionRangeAPI andSpecifierSet.to_range(), representing the versions a specifier set accepts as an interval set that supports intersection, union, difference, complement, set relations, membership tests, and filtering.VersionRange.to_specifier_set()converts a range back to aSpecifierSetwhere a PEP 440 form exists. (#1267, #1270, #1298)Metadata-Version: 2.6. (#1194)limitargument toparse_tag()for compressed tag sets. (#1220)prefer_sdist_predicateargument toPylock.select()to prefer source distributions over wheels for selected packages. (#1334)pure_python_tags()to generate the pure-Python tags for a Python version without touching the running platform. (#1346)SpecifierSet.is_subset(),SpecifierSet.is_superset(), andSpecifierSet.is_disjoint(), which compare the versions two specifier sets accept. (#1313)Behavior adaptations
linux_*platform tags overmanylinuxandmusllinuxtags on Linux. (#160)Fixes for versions and specifiers
InvalidVersioninstead ofTypeErrorwhenVersionis given a non-string. (#1319)InvalidVersionfor non-string pre-release letters passed toVersion.from_parts. (#1241)AttributeErrorwhen hashing internally trimmed versions. (#1242)SpecifierSet.is_unsatisfiablefor post-release boundary intersections. (#1257)Fixes for requirements and markers
Requirement.__hash__consistent with__eq__for trailing-zero-equivalent specifiers (e.g.foo==1.0.0andfoo==1.0.0.0), so equal requirements hash equal and deduplicate in sets and dicts. (#1232)Requirement's specifierprereleasesoverride across a pickle round trip. (#1204)InvalidRequirementinstead ofInvalidSpecifierwhen a requirement contains an invalid specifier. (#1332)==1.0.post1.*. (#1299)extraanddependency_groupsvalues in nested markers at parse time. (#1246, #1310)UndefinedComparisonwhen a set-valued variable likeextrasis used outside the membership form. (#1265)UndefinedEnvironmentName(aKeyErrorsubclass) for missing environment keys during marker evaluation. (#1276)InvalidMarker/InvalidRequirementinstead of leaking a low-level error. (#1249)Fixes for metadata and licenses
from_emailvalidation errors into oneExceptionGroupinstead of raising the first. (#1268)Description-Content-Typevalues. (#1329){field}placeholders in error messages. (#1327)unparsedinstead of asserting. (#1247)InvalidMetadataandCyclicDependencyGrouppicklable. (#1328)str.splitlinesrecognizes when writing a header withRFC822Message. (#1356)InvalidLicenseExpressionfor misplacedWITHclauses and emptyLicenseRef-names. (#1266)InvalidLicenseExpressioninstead ofKeyErrorfor aLicenseRef-with a+suffix. (#1219)Fixes for tags and filenames
InvalidTagfromparse_tag()for tags with the wrong number of components. (#1238)parse_wheel_filename()andparse_tag(). (#1234)is_normalized_namenow rejects names with collapsed double hyphens likea--b. (#1230)abi3ttags. (#1245)warnargument togeneric_tags()insys_tags(). (#1264)SystemErrorfor an empty or malformed CPythonEXT_SUFFIX. (#1271, #1301)fat3architecture name (wasfat32). (#1199)Fixes for pylock, direct URLs, and dependency groups
pylockartifact file names derived from aurlso that local versions (e.g. a wheel with2.12.1+cu130encoded as2.12.1%2Bcu130) yield a valid file name. (#1314)tagssequence inPylock.select()instead of falling back tosys_tags(). (#1349)Pylock.select()on Python builds that report a non-PEP 440python_full_version(e.g.3.15.0+). (#1179)pylockfiles. (#1244)PylockSelectErrortopackaging.pylock.__all__. (#1202)DirectUrlcredential stripping for passwords containing@. (#1218)direct_url. (#1240)direct_url. (#1297)InvalidRequirementerrors while resolving dependency groups instead of leaking them. (#1302)Performance
SpecifierandSpecifierSetfiltering with the new range engine. (#1120, #1259)_manylinuxmodule lookup process-wide. (#1254)__slots__toRequirementand the token classes. (#1320, #1258)parse_tag(), and skipplatform.mac_ver()when the version and arch are given. (#1253, #1256, #1236, #1255)Documentation
packaging.pylock. (#1339)packaging.metadatafields are validated. (#1342)RFC822Policyin the low-levelpackaging.metadatainterface. (#1222)versionadded/versionchangeddirectives and many small docstring fixes across the API reference. (#1205, #1207, #1208, #1209, #1211, #1216, #1217, #1223, #1272, #1273, #1274, #1291, #1300, #1303, #1317, #1344)Internal
New Contributors
Full Changelog: pypa/packaging@26.2...26.3
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.